home *** CD-ROM | disk | FTP | other *** search
/ Wild Blue Yonder 1: 50 Years of Gs & Jets / Wild Blue Yonder - Episode 1 - 50 Years of Gs and Jets (Digital Ranch) (Spectrum Holobyte)(1-107-40-101)(1994).iso / control / panel.dir / 00736_Script_736 < prev    next >
Text File  |  1994-08-29  |  1KB  |  33 lines

  1. on changePlane
  2.   
  3.   global aspect, aspectLabel, aspectLabelHeight, aspectMenu, ¼
  4.          aspectMenuTop, aspectStartCast, bigIcon, oneRow, mute, ¼
  5.          numOfAspLabels, panelDummy, plane, twoRows
  6.   
  7.   set iconSprite                        = the clickOn
  8.   set iconCast                          = the castNum of sprite iconSprite
  9.   set plane                             = the name of cast iconCast
  10.   set the castNum of sprite mute        = iconCast - twoRows
  11.   set the castNum of sprite bigIcon     = iconCast - oneRow
  12.   set the castNum of sprite aspectMenu  = iconCast + twoRows
  13.   
  14.   -- If a plane has no weapons, for example, and the aspect of the 
  15.   -- source movie was weapons, make the aspectLabel disappear
  16.   set checkAspect = the number of cast (plane & aspect)
  17.   if checkAspect > 0 then
  18.     set the castNum of sprite aspectLabel = checkAspect
  19.   else
  20.     set the castNum of sprite aspectLabel = panelDummy
  21.   end if
  22.   
  23.   updateStage
  24.   
  25.   set aspectStartCast                   = iconCast + twoRows
  26.   set aspectMenuTop                     = the top of sprite aspectMenu
  27.   set aspectMenuBottom                  = the bottom of sprite aspectMenu
  28.   set aspectMenuHeight                  = aspectMenuBottom - aspectMenuTop
  29.   set numOfAspLabels                    = ¼
  30.     integer(aspectMenuHeight/aspectLabelHeight)
  31.   
  32. end changePlane
  33.